package com.xxgc.zde.service.impl;

import com.xxgc.zde.entity.UsersEntity;
import com.xxgc.zde.mapper.UserMapper;
import com.xxgc.zde.service.UserLoginService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

/**
 * @author:GoodBoy
 * @DATE:2025/4/2 0:11
 * @describe:
 */
@Service
public class UserLoginServiceImpl implements UserLoginService {
    @Resource
    private UserMapper userMapper;

    @Override
    public UsersEntity userLogin(String openId) {
        if (openId==null){
            return null;
        }else{
            return userMapper.selectOpenId(openId);

        }
    }
}
